﻿using _8Group.MES.ISongService.WmItemRecpt;
using _8Group.MES.ISongService.WmItemRecptLine;
using _8Group.MES.Model.WM仓储管理;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using Volo.Abp.Domain.Repositories;

namespace _8Group.MES.SongService
{
    [ApiExplorerSettings(GroupName = "宋恒漳")]
    public class WmItemRecptLineService : ApplicationService, IWmItemRecptLineService
    {
        private readonly IRepository<WM_Item_Recpt_Line, int> _wmItemRecptRepository;

        public WmItemRecptLineService(IRepository<WM_Item_Recpt_Line, int> wmItemRecptRepository)
        {
            _wmItemRecptRepository = wmItemRecptRepository;
        }
        public async Task<object> GetListAsync(string? code)
        {
            var result = await _wmItemRecptRepository.GetListAsync(x => x.RecptCode == code);
            var results = new ResponseModel
            {
                code = "",
              //  count = count,
                data = result.ToList(),
                msg = "",
            };
            return results;
        }
    }
}
